package com.imu.purse.config;

import com.imu.purse.modules.sms.SMSMessage.Type;

public class PhoneValidate {
	//验证短信接口type
    public static Type Authentication(String type){
    	Type messageType = null;
    	if(type.equals(Type.REGISTER.getType())) 
        {
            messageType = Type.REGISTER; //注册
        } 
        else if(type.equals(Type.LOSTPWD.getType())) 
        {
            messageType = Type.LOSTPWD; //忘记密码
        } 
        else if(type.equals(Type.WITHDRAW.getType()))
        {
            messageType = Type.WITHDRAW; //提现申请
        }
        else if(type.equals(Type.LOGIN.getType()))
        {
            messageType = Type.LOGIN; //登陆
        }
        else if(type.equals(Type.IDENTIY.getType()))
        {
            messageType = Type.IDENTIY; //身份认证
        }else if(type.equals(Type.IMU_ERROR.getType())){
        	messageType = Type.IMU_ERROR; //IMU钱包异常通知
        }else if(type.equalsIgnoreCase(Type.PAY_PWD.getType())){//找回支付密码
            messageType = Type.PAY_PWD;
        }else if(type.equals(Type.USER_CHECK_PWD.getType())){//用户身份识别验证
            messageType = Type.USER_CHECK_PWD;
        }
    	return messageType;
    }
}
